package RMI;

import java.io.IOException;

public class RmiRegistry {
	public static void main(String[] args) {
		try {
			Process p = Runtime.getRuntime().exec("rmiregistry");
			System.out.print("rmiregistry is started!  ");
			System.out.println("(Hit the RETURN key to stop rmiregistry)");
			System.in.read();
			p.destroy();
			System.out.println("rmiregistry is stopped!");
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
